{include file='header.tpl'}
<fieldset id="albumlist">
<legend>用户相册</legend>
<p>
<a href="{geturl action='create' controller='albummanager'}">创建相册</a>
</p>
{if $totalAlbum == 0}
   <p> 你还没有相册！</p>
{else}
    <p>共有{$totalAlbum}个相册。</p>
        {foreach from=$albums item=album}
        <div id="album">
            <a href="{geturl action='preview'}?id={$album->getId()}">
            <p><img src="{imagefilename id=$album->coverid w=250 h=250}" alt="封面图片" /></p>
                <p>{$album->dateline|date_format:'%Y-%m-%d %H:%M'} {$album->albumname}</p>
            </a>
        </div> 
        {/foreach}
{/if}
</fieldset>
{include file='footer.tpl'}